package cn.com.callback
import groovy.json.*;
import groovy.swing.impl.DefaultAction
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.RequestDispatcher;
import cn.com.callback.CallBackInvoke
import cn.com.callback.ServiceBackInvoke
import cn.com.elite.EliteBean;
import java.security.MessageDigest;
import java.sql.ResultSet;
import java.text.SimpleDateFormat;
import net.sf.json.JSONObject;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.wisdge.dataservice.Result;
import cn.com.elite.Util;
public class Job_Every30Mi_Run implements CallBackInvoke{
	private static final Log log=LogFactory.getLog(Job_Every30Mi_Run.class);
	public void doCallBack(EliteBean eliteBean,String callBack,Map map,String paramString){

		//调用存储过程处理工单
		log.debug("Job_Every30Mi_Run调用存储过程处理外呼通知数据...");
		def procedure="{call Dbo.Job_Every30Mi_Run(?,?)}";
		def inputMap = new String[1];
		inputMap[0] = "Job_Every30Mi_Run";

		log.debug("Job_Every30Mi_Run调用存储过程处理SQL:" + procedure);
		def reSult = eliteBean.executeWithReturn(procedure, inputMap, 'dataSource');
		log.debug("Job_Every30Mi_Run调用存储过程处理返回:" + reSult);
		
		//智慧停水通知 调度推送结果给 综合停水系统
		log.debug("-------------------------start waterSmsResult 开始-----------------");
		Map<String, String> headMap = new HashMap<String, String>();
		headMap.put("Content-Type", "application/json");
		def sysurl = "http://127.0.0.1:8010/EliteGeneralHttpTask/GeneralService/waterSmsResult";
		Util.doHttpPostUseHead(sysurl,"","UTF-8",10000,0,headMap);
	}
}